<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>添加目的地交通信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
		<form id="fm" method="post" enctype="multipart/form-data">
			<table>
				<tr>
					<td><label>交通类型:</label></td>
					<td>
						<select id="traffic" name="trafficType" onchange="setName()">
							<option value="1"  <c:if test="${destTraffic.trafficType==1}">
							selected="true"</c:if>>航空</option>
							<option value="2" <c:if test="${destTraffic.trafficType==2}">
							selected="true"</c:if>>铁路</option>
							<option value="3" <c:if test="${destTraffic.trafficType==3}">
							selected="true"</c:if>>公路</option>
							<option value="4"<c:if test="${destTraffic.trafficType==4}">
							selected="true"</c:if>>水运</option>
							<option value="5"<c:if test="${destTraffic.trafficType==5}">
							selected="true"</c:if>>市内交通</option>
						</select>
					</td>
				</tr>
				<input name="name" type="hidden" class="name" value="${destTraffic.name}">
				<tr>
					<td><label>描述信息:</label></td>
					<td><textarea name="content" id="trafficDesc"
					class="easyui-validatebox"  data-options="validType:'length[0,1024]'"
					 style="width:392px;height:80px" >${destTraffic.content }</textarea></td>
				</tr>
				<tr>
					<td>
					<input type="hidden" value="${destTraffic.destId}" name="destId">
					<input type="hidden" value="${destTraffic.trafficId}" name="trafficId">
					<input type="hidden" value="${destTraffic.trafficType }" name="oldTrafficType">
					<input type="hidden" value="${destTraffic.parentId }" name="parentId">
					<input type="hidden" value="${destTraffic.level }" name="level">
					</td>
				</tr>
			</table>
		</form>
		<script type="text/javascript">

		$('#trafficDesc').ceditor();
		function setName(){
			var tes = $("#traffic option:selected").text();
			$(".name").val(tes);
		}
		
		</script>
	<style type="text/css">
			#fm {
				margin: 0;
				padding: 40px 40px;
			}
			
			.ftitle {
				font-size: 14px;
				font-weight: bold;
				padding: 5px 0;
				margin-bottom: 10px;
				border-bottom: 1px solid #ccc;
			}
			
			.fitem {
				margin-bottom: 5px;
			}
			
			.fitem label {
				display: inline-block;
				width: 90px;
			}
			
		 </style>
</body>
</html>